package com.ddx.dao;

import com.ddx.pojo.ShoppingCatalog;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ShoppingCatalogMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ShoppingCatalog record);

    int insertSelective(ShoppingCatalog record);

    ShoppingCatalog selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ShoppingCatalog record);

    int updateByPrimaryKey(ShoppingCatalog record);

    /**
     * 根据父类id查询分类信息
     * @param pid
     * @return
     */
    List<ShoppingCatalog> selectCatalogByPid(Integer pid);
}